|求助|这个程序哪里错了

来源:百度知道 编辑:UC知道 时间:2024/06/11 05:44:14
#if _MSC_VER > 1000
#pragma once
#endif
#ifdef __cplusplus
#ifndef _INC_IOSTREAM
#define _INC_IOSTREAM
#if !defined(_WIN32) && !defined(_MAC)
#error ERROR: Only Mac or Win32 targets supported!
#endif
#ifdef _MSC_VER
#pragma pack(push,8)
#include <useoldio.h>
#endif
#ifndef _CRTIMP
#ifdef _DLL
#define _CRTIMP __declspec(dllimport)
#else
#define _CRTIMP
#endif
#endif
typedef long streamoff, streampos;
#include <ios.h>
#include <streamb.h>
#include <istream.h>
#include <ostream.h〉
#ifdef _MSC_VER
#pragma warning(disable:4514)
#endif
class _CRTIMP iostream : public istream, public ostream {
public:
iostream(streambuf*);
virtual ~iostream();
protected:
iostream();
iostream(const iostream&);

你犯了程序员的大忌。
还好我细心,才看出来。
你仔细看看#include <ostream.h〉你写成什么了
应该是#include <ostream.h> 右边阔号应该是英文输入,你给写成了中文输入。我编译通过了~运行环境是VC++ XP+SP2

调试